I have created an app using UIScrollView and I also added a gesture recognizer but calling method in gesture recognizer is not working.
this is the code:
UITapGestureRecognizer *doubleTap = [[UITapGestureRecognizer alloc]and this is the implementation:
initWithTarget:self
action:@selector(doubbleTapHandler:)];
[self.scrollView addGestureRecognizer:doubleTap];
-(void)doubleTapHandler:(UITapGestureRecognizer*)recognizerCan any one tell me how can I solve this issue?
{
//here I am doing some UIRelatedTasks
}
Tarun Kumar
22-Feb-2016So add this line of code, this scrollview will count the number of taps if 2 tap will happened on it then it will coll the selector method doubleTapHandler:
doubleTap .numberOfTapsRequired=2;
Here is your complete code: